import { CHANGE_LOGIN } from './actions'

const defaultState = {
  isLogin: true,
}

export default (state = defaultState, action) => {
  switch (action.type) {
    case CHANGE_LOGIN:{
      return {
        ...state,
        isLogin: action.isLogin
      }
    }
    default:
      return state
  }
}
